<template>
	<ConfigProvider :locale="zhCn">
		<AppProvider>
			<RouterView />
		</AppProvider>
	</ConfigProvider>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { ConfigProvider } from 'ant-design-vue';
import dayjs from 'dayjs';
import { AppProvider } from '#/components';
import zhCn from 'ant-design-vue/es/locale/zh_CN';
import 'dayjs/locale/zh-cn';

export default defineComponent({
	components: { ConfigProvider, AppProvider },
	setup() {
		dayjs.locale('zh-cn');
		return {
			zhCn,
		};
	},
});
</script>
